package com.hydl.power.controller;

import com.hydl.power.aop.annotation.LogAnnotation;
import com.hydl.power.service.LocationService;
import com.hydl.power.utils.Resp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.rmi.RemoteException;
import java.util.List;
import java.util.Map;


@Api(value = "LocationController",tags = "定位信息")
@RequestMapping("/location")
@RestController
@CrossOrigin
public class LocationController {

    @Autowired
    private LocationService locationService;

    //@LogAnnotation(module = "定位信息",description = "运维人员实时定位")
    @GetMapping("/getLocation")
    @ApiOperation(value = "运维人员实时定位", produces = "application/json")
    public Resp getLocation()  {
        List<String> location = locationService.getLocation();
        return Resp.success(location);
    }


}
